package patterns.commandPattern;

import java.net.URL;
import java.util.Map;

public abstract class RequestCommander {
	public Requestor requestor;
	public static RequestDispatcher requestDispatcher = RequestDispatcher.getInstance();

	public abstract URL getUrl();

	public abstract String getType();

	public abstract String getProtocol();

	public abstract Map<String, String> getRequestHeadParameter();

	public abstract Long getLength();

	public abstract Map<String, String> getRequestBodyParameter();
	public final void addToDispatcher(){
		requestDispatcher.addCommander(this);
		requestDispatcher.dispatch();
	}
}
